package com.eight.group.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class GetNameUtils {
    public static String lihuan(String fileName){
        Date da=new Date();
        SimpleDateFormat sm=new SimpleDateFormat("yyyyMMddHHmmss");
        String format = sm.format(da);//时间日期字符串格式
        int i = fileName.lastIndexOf(".");//+fileNo+stmeal+
        String substring = fileName.substring(i);
        return format+substring;
    }
}
